<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition>
        <h:form id="frm_learn">
            <p:fieldset id="fs_choose" legend="#{msg.learn_pnl_choose_header}" rendered="#{learnWizardBean.showPanelChoose}">
                <h:outputText id="lbl_intro1" value="#{msg.learn_lbl_intro1_value}"/>
                <h:outputText id="lbl_fcb" value="#{learnWizardBean.fileCardBox.title}"/>
                <h:outputText id="lbl_intro2" value=" #{msg.learn_lbl_intro2_value}"/>
                <br/>
                <h:outputText id="lbl_sum" value="#{msg.learn_lbl_sum_value}"/>
                <p:panelGrid columns="6" styleClass="noborder">
                    <h:outputText id="lbl_cat0h" value="#{msg.learn_lbl_cat0h_value}"/>
                    <h:outputText id="lbl_cat1h" value="#{msg.learn_lbl_cat1h_value}"/>
                    <h:outputText id="lbl_cat2h" value="#{msg.learn_lbl_cat2h_value}"/>
                    <h:outputText id="lbl_cat3h" value="#{msg.learn_lbl_cat3h_value}"/>
                    <h:outputText id="lbl_cat4h" value="#{msg.learn_lbl_cat4h_value}"/>
                    <h:outputText id="lbl_cat5h" value="#{msg.learn_lbl_cat5h_value}"/>
                    <h:outputText id="lbl_cat0" value="#{learnWizardBean.unknownLearnStatus}"/>
                    <h:outputText id="lbl_cat1" value="#{learnWizardBean.worstStatusForFileCards}"/>
                    <h:outputText id="lbl_cat2" value="#{learnWizardBean.badStatusForFileCards}"/>
                    <h:outputText id="lbl_cat3" value="#{learnWizardBean.goodStatusForFileCards}"/>
                    <h:outputText id="lbl_cat4" value="#{learnWizardBean.betterStatusForFileCards}"/>
                    <h:outputText id="lbl_cat5" value="#{learnWizardBean.bestStatusForFileCards}"/>
                </p:panelGrid>
                <p:separator/>
                <h:outputText id="lbl_chooseCat" value="#{msg.learn_lbl_chooseCat_value}"/>
                <p:selectManyCheckbox id="smc_cat" value="#{learnWizardBean.selectedCategories}">
                    <f:selectItems value="#{learnWizardBean.learnCategory}"/>
                </p:selectManyCheckbox>
                <p:separator/>
                <p:commandButton id="btn_learn" value="#{msg.btn_learn}" actionListener="#{learnWizardBean.startLearning()}" update="frm_learn"/>
                <p:commandButton id="btn_pnl_choose_cancel" value="#{msg.btn_cancel}" actionListener="#{learnWizardBean.endLearning()}" update="frm_learn"/>
            </p:fieldset>
            <p:fieldset id="fs_start" legend="#{msg.learn_pnl_st_header}" rendered="#{learnWizardBean.showPanelStart}">
                <h:outputText id="lbl_pnl_st_1" value="#{msg.learn_lbl_pnl_st_1_value}"/>
                <h:outputText id="lbl_pnl_st_2" value="#{learnWizardBean.sizeLstFileCardToLearn}"/>
                <h:outputText id="lbl_pnl_st_3" value=" #{msg.learn_lbl_pnl_st_3_value}"/>
                <br/>
                <h:outputText id="lbl_pnl_st_4" value="#{msg.learn_lbl_pnl_st_4_value}"/>
                <p:separator/>
                <p:commandButton id="btn_pnl_st_start" value="#{msg.btn_start}" actionListener="#{learnWizardBean.showInitialQuestion()}" update="frm_learn"/>
                <p:commandButton id="btn_pnl_st_cancel" value="#{msg.btn_cancel}" actionListener="#{learnWizardBean.endLearning()}" update="frm_learn"/>
            </p:fieldset>
            <p:fieldset id="fs_qu" legend="#{msg.learn_pnl_qu_header}" rendered="#{learnWizardBean.showPanelQuestion}">
                <p:panelGrid columns="2" styleClass="noborder">
                    <h:outputText id="lbl_pnl_qu_qu1" value="#{msg.learn_lbl_pnl_qu_qu1_value}"/>
                    <h:outputText id="lbl_pnl_qu_qu2" value="#{learnWizardBean.currentFileCardHTMLFormattedQuestion}" escape="false"/>
                </p:panelGrid>
                <p:separator/>
                <p:commandButton id="btn_pnl_qu_answer" value="#{msg.btn_answer}" actionListener="#{learnWizardBean.showAnswer()}" update="frm_learn"/>
                <p:commandButton id="btn_pnl_qu_cancel" value="#{msg.btn_cancel}" actionListener="#{learnWizardBean.endLearning()}" update="frm_learn"/>
            </p:fieldset>
            <p:fieldset id="fs_aw" legend="#{msg.learn_pnl_aw_header}" rendered="#{learnWizardBean.showPanelAnswer}">
                <p:panelGrid columns="2" styleClass="noborder">
                    <h:outputText id="lbl_pnl_aw_qu1" value="#{msg.learn_lbl_pnl_aw_qu1_value}"/>
                    <h:outputText id="lbl_pnl_aw_qu2" value="#{learnWizardBean.currentFileCardHTMLFormattedQuestion}" escape="false"/>
                    <h:outputText id="lbl_pnl_aw_aw1" value="#{msg.learn_lbl_pnl_aw_aw1_value}"/>
                    <h:outputText id="lbl_pnl_aw_aw2" value="#{learnWizardBean.currentFileCardHTMLFormattedAnswer}" escape="false"/>
                </p:panelGrid>
                <p:separator/>
                <h:outputText id="lbl_pnl_aw_f1" value="#{msg.learn_lbl_pnl_aw_f1_value}" rendered="#{!learnWizardBean.showRelearn}"/>
                <p:commandButton id="btn_pnl_aw_false" value="#{msg.btn_wrong}" actionListener="#{learnWizardBean.evaluateAnswer(false)}" update="frm_learn" rendered="#{!learnWizardBean.showRelearn}"/>
                <p:commandButton id="btn_pnl_aw_right" value="#{msg.btn_right}" actionListener="#{learnWizardBean.evaluateAnswer(true)}" update="frm_learn" rendered="#{!learnWizardBean.showRelearn}"/>
                <h:outputText id="lbl_pnl_aw_f2" value="#{msg.learn_lbl_pnl_aw_f2_value}" rendered="#{learnWizardBean.showRelearn}"/> 
                <p:commandButton id="btn_pnl_aw_yes" value="#{msg.btn_yes}" actionListener="#{learnWizardBean.reLearnFileCard(true)}" update="frm_learn" rendered="#{learnWizardBean.showRelearn}"/>
                <p:commandButton id="btn_pnl_aw_no" value="#{msg.btn_no}" actionListener="#{learnWizardBean.reLearnFileCard(false)}" update="frm_learn" rendered="#{learnWizardBean.showRelearn}"/>
            </p:fieldset>
            <p:fieldset id="fs_end" legend="#{msg.learn_pnl_end_header}" rendered="#{learnWizardBean.showPanelEnd}">
                <h:outputText id="lbl_pnl_end_1" value="#{msg.learn_pnl_end_1_value}"/>
                <p:separator/>
                <p:commandButton id="ptn_pnl_end_close" value="#{msg.btn_close}" actionListener="#{learnWizardBean.endLearning()}"/>
            </p:fieldset>
        </h:form> 
    </ui:composition>
</html>

